
export default {
  data () {
    return {
      costTypeOptions: [{
        "label": "不设置",
        "value": "1"
      }, {
        "label": "CPD",
        "value": "2"
      }, {
        "label": "CPM",
        "value": "3"
      }, {
        "label": "CPC",
        "value": "4"
      }],
      cssitemOptions: [{
        "label": "默认配置",
        "value": "1"
      }, {
        "label": "普通样式配置",
        "value": "2"
      }, {
        "label": "特殊样式配置",
        "value": "3"
      }],
      blackstypeOptions: [{
        "label": "自动收起",
        "value": "1"
      }, {
        "label": "空白",
        "value": "2"
      }, {
        "label": "自定义链接",
        "value": "3"
      }, {
        "label": "自定义物料",
        "value": "4"
      }],

      rules: {
        placeName: [{
          required: true,
          message: '请输入广告位名称',
          trigger: 'blur'
        }],
        adtags: [{
          required: true,
          message: '请输入标签',
          trigger: 'blur'
        }],
        adtype: [{
          required: true,
          message: '载体类型不能为空',
          trigger: 'change'
        }],
        placeType: [{
          required: true,
          message: '广告位类型不能为空',
          trigger: 'change'
        }],
        placeWidth: [{
          required: true,
          message: '请输入广告位尺寸',
          trigger: 'blur'
        }],
        placeHeight: [{
          required: true,
          message: '请输入宽',
          trigger: 'blur'
        }],
        caculateMethod: [{
          required: true,
          message: '计费方式不能为空',
          trigger: 'change'
        }],
        cssitem: [{
          required: true,
          message: '样式配置不能为空',
          trigger: 'change'
        }],
        blackstype: [{
          required: true,
          message: '请选择打底样式',
          trigger: 'change'
        }],
      }
    }
  }
}

